<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05-变量</title>
    <script>
        //变量声明
        var age;
        //赋值
        age=18;
        //变量声明+赋值=变量初始化
        var Name='姓名';
        //在控制台输出
        console.log(age);
        console.log(Name);
    </script>
</head>
<body>
    
</body>
</html>